package com.atguigu.lease.admin.mapper;

import com.atguigu.lease.model.bean.RoomInfo;
import com.atguigu.lease.model.vo.RoomItemVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 1
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2025-09-22 17:18:51
* @Entity com.atguigu.lease.model.bean.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {
    //自定义sql时，如果需要使用wrapper对象，必须命名为 ew才可以使用！！！！
    Page<RoomItemVo> selectPageItem(Page<RoomItemVo> objectPage, @Param(Constants.WRAPPER) QueryWrapper<Object> queryWrapper);

    List<RoomInfo> selectBasicByApartmentId(Long apartmentId);

}




